package com.wxx.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wxx.mapper.WeixxMapper;
import com.wxx.model.Weixx;

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext cx = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		WeixxMapper weixxMapper= (WeixxMapper) cx.getBean("weixxMapper");
		Weixx weixx =weixxMapper.selectWeixxById("1");
		System.out.println(">>>>>>>>>>>>>>>"+weixx.getUsername());
	}
}
